package cn.ncupyh.polymorphism;

public class Cat extends Animal{
    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }
//    逮老鼠catchMouse方法(无参数)
    public void catchMouse(){
        System.out.println("功能:爱逮老鼠~");
    }

    @Override
    public void eat(String something) {
        System.out.println(age+"岁的"+getColor()+"的猫眯着眼睛侧着头"+something);
    }
}
